package com.wgo.bpot.domain.common;

import com.wgo.bpot.server.persist.Persistent;




public interface User extends Persistent {
	public String getUserName();
	public void setUserName(String userName);
	public long getPasswordHashCode();
    public void setPassword(String password);
    /**
     * TODO getPassword() method should really not be available!  The current state of the framework requires it to be present however.
     * If it is not here, then the password is not saved!
     * @return
     */
    public String getPassword();
	public String getFirstName();
	public void setFirstName(String firstName);
	public String getLastName();
	public void setLastName(String lastName);
	public UserRole getUserRole();
	public void setUserRole(UserRole userRole);
    public boolean isAllowed(ServicePrivilege... servicePrivileges);
}
